from google.appengine.ext import db
from musiclib.models import Music

# Create your models here.
class UserRate(db.Model):
    user = db.UserProperty()
    music = db.ReferenceProperty(Music)
    score = db.IntegerProperty()
    datetime = db.DateTimeProperty()
    annopos = db.IntegerProperty() # position of music when anno in million second

class UserAction(db.Model):
    user = db.UserProperty()
    music = db.ReferenceProperty(Music)
    desp = db.StringProperty()
    datetime = db.DateTimeProperty()

class UserModel1Cluster(db.Model):
    user = db.UserProperty()
    p = db.FloatProperty()
    a = db.FloatProperty()
    d = db.FloatProperty()
    weight = db.FloatProperty()# in range 0-1


#this class is of no use
class UserModel1(db.Model):
    """
    cluster model with agglomerate cluster method
    with five center
    how to desp the model with clusters
    """
    
